package com.my.stockcomeenter.controller;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.my.common.JsonUtil;
import com.my.stockcomeenter.service.StockComeEnterService;

@RestController
@CrossOrigin(origins="*")
public class StockComeEnterController {
	@Autowired
    private StockComeEnterService stockComeEnterService;
	
	@RequestMapping("getStockComeEnter")
    public String getStockComeEnter(String sku,String orname){
		Map<String, Object> map=new HashMap<String,Object>();
		map.put("sku", sku);
		map.put("orname", orname);
        return JsonUtil.success(stockComeEnterService.getStockComeEnter(map));
    }

}
